<?php

namespace Shop\BooksBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class BookType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('book_name')
            ->add('author')
            ->add('description')
            ->add('price')
            ->add('publish_year')
        ;
    }

    public function getName()
    {
        return 'shop_booksbundle_booktype';
    }
}
